<?php /* Smarty version Smarty-3.0.9, created on 2013-05-09 12:45:51
         compiled from "C:/wamp/www/glight/templates\Crear_personaje.tpl" */ ?>
<?php /*%%SmartyHeaderCode:8364518b9a7f4fc764-15103952%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'de13e62a551236a49a839816cfeed33e62af9c5a' => 
    array (
      0 => 'C:/wamp/www/glight/templates\\Crear_personaje.tpl',
      1 => 1365295252,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8364518b9a7f4fc764-15103952',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<style type="text/css"> @import url(../css/form.css); </style>

<h3> Crear Personaje</h3> 

<form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l__global'];?>
crear_personaje.php?option=mostrardatos" method="POST">

    <table id="tableForm" class="tableForm">
        
        <th colspan="2"> <br></th>
                
        <tr>                    
            <td width="150px">
                Nombre:
            </td>
            
            <td>
                <input type="text" name="Nombre" maxlength="40" 
                               placeholder="Nombre" required>
            </td>
        </tr>

        <tr>
            <td>
                Descripción:
            </td>
            
            <td>
                <textarea name="Descripcion" required 
                                  placeholder="Descripcion del personaje"></textarea>                         
            </td>
        </tr>

        <tr>
            <td>
                Comportamiento:
            </td>
            
            <td>
                <textarea name="Comportamiento" required 
                                  placeholder="Comportamiento del personaje"></textarea>
            </td>
        </tr>
        
        <tr>
            <td>
                Tipo:
            </td>
            
            <td>
                <select required name="Tipo">
                    <option value="Principal">Principal</option>
                    <option value="Aliado">Aliado</option>
                    <option value="Enemigo">Enemigo</option>
                    <option value=Neutral">Neutral</option>
                </select>
            </td>
        </tr>
        
        <tr>
            <td>
                Habilidad:
            </td>
                    
            <td>
                <textarea name="Habilidad" required 
                          placeholder="Habilidades del personaje"></textarea>
            </td>
        </tr>
        
        <tr>
            <td></td>
            <td>
                <hr>
                <div class="submit">
                    <button name="crear_personaje">Crear Personaje</button>
                </div>
            </td>
        </tr>
    </table>
</form>

<?php if (isset($_smarty_tpl->getVariable('Personaje',null,true,false)->value)){?>
    <table id="tableForm" class="tableForm">
        <tr>
            <td>
                <h4> Resultados:</h4><hr><br/>
                <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('Personaje')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                    <b><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
  :</b> <?php echo $_smarty_tpl->tpl_vars['value']->value;?>
<br/><br/>
                <?php }} ?>
            </td>
        </tr>
    </table>
<?php }?>


